<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="">
    <meta name="author" content="">    
    <link rel="shortcut icon" href="favicon.ico">
    <title><?php echo $this->settings->site_name ?><?php echo isset($title) ? ' - ' . $title : '' ?></title>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,300,400&subset=latin,greek,greek-ext' rel='stylesheet' type='text/css'>
    
    <!-- Global CSS -->
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/bootstrap.css">   
    <!-- Plugins CSS -->    
    <link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/flexslider/flexslider.css">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/pretty-photo/css/prettyPhoto.css">    
    <!-- Theme CSS -->  
    <link id="theme-style" rel="stylesheet" href="<?php echo base_url();?>assets/css/styles.css">
	
	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body class="home-page">
	<!-- Part 1: Wrap all page content here -->
        <?php if($this->session->flashdata('flashMessage')):?>
            <div class="alert alert-<?php echo $this->session->flashdata('flashMessageType')?> alert-dismissible" role="alert">
                <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <?php echo $this->session->flashdata('flashMessage')?> 
            </div>
        <?php endif ?>
	<div class="wrapper">
	<!-- ******HEADER****** --> 
        <header class="header">  
            <div class="top-bar">
                <div class="container">              
                    <ul class="social-icons col-md-6 col-sm-6 col-xs-12 hidden-xs">
                        <?php if ($this->settings->twitter_link) { ?>
                          <li><a href="<?php echo $this->settings->twitter_link ?>" target="blank"><i class="fa fa-twitter"></i></a></li> 
                        <?php }?>
                        <?php if ($this->settings->facebook_link) { ?>
                          <li><a href="<?php echo $this->settings->facebook_link ?>"  target="blank"><i class="fa fa-facebook"></i></a></li> 
                        <?php }?>
                        <?php if ($this->settings->youtube_link) { ?>
                          <li><a href="<?php echo $this->settings->youtube_link ?>"  target="blank"><i class="fa fa-youtube"></i></a></li> 
                        <?php }?>
                        <?php if ($this->settings->linkedin_link) { ?>
                          <li><a href="<?php echo $this->settings->linkedin_link ?>"  target="blank"><i class="fa fa-linkedin"></i></a></li> 
                        <?php }?>
                        <?php if ($this->settings->google_link) { ?>
                          <li><a href="<?php echo $this->settings->google_link ?>"  target="blank"><i class="fa fa-google-plus"></i></a></li> 
                        <?php }?>        
                        <li class="row-end"><a href="#"  target="blank"><i class="fa fa-rss"></i></a></li>             
                    </ul><!--//social-icons-->
                    <form class="pull-right search-form" role="search">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="<?php echo lang('search'); ?>...">
                        </div>
                        <button type="submit" class="btn btn-theme">Go</button>
                    </form>         
                </div>      
            </div><!--//to-bar-->
			<div class="header-main container">
                <h1 class="logo col-md-4 col-sm-4">
                    <a href="<?php echo base_url() ?>"><img id="logo" src="<?php echo base_url() . "assets/images/" . $this->settings->site_logo ?>" alt="Logo"></a>
                </h1><!--//logo-->           
                <div class="info col-md-8 col-sm-8">
                    <ul class="menu-top navbar-right hidden-xs">
                        <li class="divider"><a href="<?php echo base_url() ?>"><?php echo lang('home'); ?></a></li>
                        <li class="divider"><a href="<?php echo base_url() ?>contact_us"><?php echo lang('contact'); ?></a></li>
                        <?php 
                            if (!$this->ion_auth->logged_in()) {
                                echo '<li><a href="' . base_url() . 'auth/login">Login</a></li>';
                            } else {
                                echo '<li><a href="' . base_url() . 'auth/logout">Logout</a></li>';
                            }
                        ?>
                    </ul><!--//menu-top-->
                    <br />
                    <div class="contact pull-right">
                        <p class="phone"><i class="fa fa-phone"></i><?php echo $this->contactDetails->phone ?></p> 
                        <p class="email"><i class="fa fa-envelope"></i><a href="mailto:<?php echo $this->contactDetails->email ?>"><?php echo $this->contactDetails->email ?></a></p>
                    </div><!--//contact-->
                </div><!--//info-->
            </div><!--//header-main-->
        </header><!--//header-->
	
        <?php  $this->load->view('main_menu'); ?>
        
      <div class="content container">
          <?php  $this->load->view($template); ?>
      </div><!-- /content -->
	   
    </div><!--//wrapper-->
	<!-- ******FOOTER****** --> 
	<footer class="footer">
        <div class="footer-content">
            <div class="container">
                <div class="row">
                <div class="footer-col col-md-3 col-sm-4 about">
                    <div class="footer-col-inner">
                        <h3><?php echo lang('about'); ?></h3>
                        <ul>
                            <li><a href="#"><i class="fa fa-caret-right"></i><?php echo lang('meet_us'); ?></a></li>
                            <li><a href="<?php echo base_url() ?>contact"><i class="fa fa-caret-right"></i><?php echo lang('contact_us'); ?></a></li>
                            <li><a href="#"><i class="fa fa-caret-right"></i><?php echo lang('privacy_policy'); ?></a></li>
                            <li><a href="#"><i class="fa fa-caret-right"></i><?php echo lang('terms_and_conditions'); ?></a></li>
                        </ul>
                    </div><!--//footer-col-inner-->
                </div><!--//foooter-col-->
                <div class="footer-col col-md-6 col-sm-8 newsletter">
                    <div class="footer-col-inner">
                        <h3><?php echo lang('join_our_mailing_list'); ?></h3>
                        <p><?php echo lang('mailin_list_description'); ?></p>
                        <form class="subscribe-form" method="post" action="<?php echo base_url(); ?>mailing_list/subscribe">
                            <div class="form-group">
                                <input type="email" name="email" class="form-control" placeholder="Email" required>
                            </div>
                            <input class="btn btn-theme btn-subscribe" type="submit" value="Subscribe">
                        </form>
                    </div>
                </div><!--//foooter-col--> 
                <div class="footer-col col-md-3 col-sm-12 contact">
                    <div class="footer-col-inner">
                        <h3><?php echo lang('contact'); ?></h3>
                        <div class="row">
                            <p class="adr clearfix col-md-12 col-sm-4">
                                <i class="fa fa-map-marker pull-left"></i>        
                                <span class="adr-group pull-left">       
                                    <span class="street-address"><?php echo $this->contactDetails->address ?></span><br>
                                    <span class="region"><?php echo $this->contactDetails->city ?></span><br>
                                    <span class="postal-code"><?php echo $this->contactDetails->postal_code ?></span><br>
                                    <span class="country-name"><?php echo $this->contactDetails->country ?></span>
                                </span>
                            </p>
                            <p class="tel col-md-12 col-sm-4"><i class="fa fa-phone"></i><?php echo $this->contactDetails->phone ?></p>
                            <p class="email col-md-12 col-sm-4"><i class="fa fa-envelope"></i><a href="#"><?php echo $this->contactDetails->email ?></a></p>  
                        </div> 
                    </div><!--//footer-col-inner-->            
                </div><!--//foooter-col-->   
                </div>   
            </div>        
        </div><!--//footer-content-->
        <div class="bottom-bar">
            <div class="container">
                <div class="row">
                    <ul class="social pull-right col-md-6 col-sm-12 col-xs-12">
                        <?php if ($this->settings->twitter_link) { ?>
                          <li><a href="<?php echo $this->settings->twitter_link ?>" target="blank"><i class="fa fa-twitter"></i></a></li> 
                        <?php }?>
                        <?php if ($this->settings->facebook_link) { ?>
                          <li><a href="<?php echo $this->settings->facebook_link ?>"  target="blank"><i class="fa fa-facebook"></i></a></li> 
                        <?php }?>
                        <?php if ($this->settings->youtube_link) { ?>
                          <li><a href="<?php echo $this->settings->youtube_link ?>"  target="blank"><i class="fa fa-youtube"></i></a></li> 
                        <?php }?>
                        <?php if ($this->settings->linkedin_link) { ?>
                          <li><a href="<?php echo $this->settings->linkedin_link ?>"  target="blank"><i class="fa fa-linkedin"></i></a></li> 
                        <?php }?>
                        <?php if ($this->settings->google_link) { ?>
                          <li><a href="<?php echo $this->settings->google_link ?>"  target="blank"><i class="fa fa-google-plus"></i></a></li> 
                        <?php }?>    
                        <li class="row-end"><a href="#" ><i class="fa fa-rss"></i></a></li>
                    </ul><!--//social-->
                </div><!--//row-->
            </div><!--//container-->
        </div><!--//bottom-bar-->
    </footer><!--//footer-->

	<!-- Javascript -->          
    <script type="text/javascript" src="<?php echo base_url();?>assets/plugins/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>assets/plugins/jquery-migrate-1.2.1.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>assets/plugins/bootstrap/js/bootstrap.min.js"></script> 
    <script type="text/javascript" src="<?php echo base_url();?>assets/plugins/bootstrap-hover-dropdown.min.js"></script> 
    <script type="text/javascript" src="<?php echo base_url();?>assets/plugins/back-to-top.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>assets/plugins/jquery-placeholder/jquery.placeholder.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>assets/plugins/pretty-photo/js/jquery.prettyPhoto.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>assets/plugins/flexslider/jquery.flexslider-min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>assets/plugins/jflickrfeed/jflickrfeed.min.js"></script> 
    <script type="text/javascript" src="<?php echo base_url();?>assets/js/main.js"></script>   
</body>
</html>